/*
 * Confidential, Copyright (C) 2011 A9.Com, Inc.
 */

package com.cuit.jifver.weibo.utils;

import java.text.SimpleDateFormat;
import java.util.Locale;

// A common place for the constants in the ContnuousScanLibrary.

public class Constants {
    public static final boolean loggingEnabled = false;
    public static final String DATE_FORMAT = "yyyy-MM-dd hh:mm";
    
    //Sun Dec 11 16:05:23 +0800 2011
    public SimpleDateFormat sinaDateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss ZZZZ yyyy",Locale.ENGLISH);
    
    public static int CACHE_LIMIT = 30;
    
    public class task
    {
    	public static final int GET_RUEST_TOKEN = 1;
    	public static final int GET_AUTHORIZATION_TOKEN = GET_RUEST_TOKEN + 1;
    	public static final int GET_ACCESS_TOKEN = GET_AUTHORIZATION_TOKEN + 1;
    	public static final int GET_SINA_HOME_TIMELINE  = GET_ACCESS_TOKEN + 1;
    	
    }
    
    
    
    public class oauth
    {
    	public static final String OAUTH_VERIFIER = "oauth_verifier";  //授权码
        public static final String OAUTH_CONSUMER_KEY = "oauth_consumer_key";  //App Key
        public static final String OAUTH_NONCE = "oauth_nonce";  //单次值
        public static final String OAUTH_SIGNATURE_METHOD = "oauth_signature_method";  //签名方法
        public static final String OAUTH_TIMESTAMP = "oauth_timestamp";  //时间戳
        public static final String OAUTH_TOKEN = "oauth_token";  //Token
        public static final String OAUTH_VERSION = "oauth_version";  //版本号
        public static final String OAUTH_SOURCE = "source";  //
        public static final String OAUTH_CALLBACK = "oauth_callback";  //返回地址
        
        public static final String OAUTH_FILE_NAME = "accesstokendata";  //保存AccessOauth的文件名
        public static final String OAUTH_TOKEN_SECRET = "oauth_token_secret";  //保存AccessOauth的文件名
    }
    
    
    public class sina
    {
    	public static final String ACCESS_TOKEN = "sina_access_token";
    	public static final String ACCESS_TOKEN_SECRET = "sina_access_token_secret";
		public static final String URL_HOME_TIME_LINE = "http://api.t.sina.com.cn/statuses/friends_timeline.json";
    	
    	
    }
    
    public class qq
    {
    	public static final String ACCESS_TOKEN = "qq_access_token";
    	public static final String ACCESS_TOKEN_SECRET = "qq_access_token_secret";
    	
    	public static final String URL_PUBLISH_TEXT_MESSAGE = "http://open.t.qq.com/api/t/add";
    	public static final String URL_HOME_TIME_LINE = "http://open.t.qq.com/api/statuses/home_timeline";
    }
    
    public class sohu
    {
    	public static final String ACCESS_TOKEN = "sohu_access_token";
    	public static final String ACCESS_TOKEN_SECRET = "sohu_access_token_secret";
    }
    
    public class wangyi
    {
    	public static final String ACCESS_TOKEN = "wangyi_access_token";
    	public static final String ACCESS_TOKEN_SECRET = "wangyi_access_token_secret";
    }
    
}
